﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>WEIBO API testing</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
        input.text {
                width: 500px;
        }
        form {
                border: 2px solid #ddd;
                padding: 5px;
        }
</style>
</head>
<body>
        <div>
        DEMO: https://api.weibo.com/2/statuses/update.json (jssdk2.0)
        </div>
        <form action="https://api.weibo.com/2/statuses/update.json" method="post">
                <input type="hidden" name="source" value="1166443256" />
                <input type="hidden" name="access_token" value="2.00jzxULCuKRwQB1d5c68fcf97k5_eB" />
                <input type="text" class="text" name="status" value="published by update.json" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        DEMO: https://api.weibo.com/2/statuses/upload.json (jssdk2.0)
        </div>  
        <form action="https://api.weibo.com/2/statuses/upload.json" method="post" enctype="multipart/form-data">
                <input type="hidden" name="source" value="1166443256" />
                <input type="hidden" name="access_token" value="2.00jzxULCuKRwQB1d5c68fcf97k5_eB" />
                <input type="text" class="text" name="status" value="published by update.json and upload image" />
                <input type="file" name="pic" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        DEMO: https://api.weibo.com/2/statuses/upload.json (微博桌面)
        </div>  
        <form action="https://api.weibo.com/2/statuses/upload.json" method="post" enctype="multipart/form-data">
                <input type="hidden" name="source" value="140226478" />
                <input type="hidden" name="access_token" value="2.00jzxULC05_4UJddb079cbc24gLfXD" />
                <input type="text" class="text" name="status" value="published by upload.json and upload image" />
                <input type="file" name="pic" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        DEMO: https://api.weibo.com/2/statuses/upload.json (达闻微指数)
        </div>  
        <form action="https://api.weibo.com/2/statuses/upload.json" method="post" enctype="multipart/form-data">
                <input type="hidden" name="source" value="4134457377" />
                <input type="hidden" name="access_token" value="2.00jzxULC6OlnVE6daf6d4584dYaSRB" />
                <input type="text" class="text" name="status" value="test status publish and picture upload." />
                <input type="file" name="pic" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        这个最NB，跟从网页上发布一样： https://api.weibo.com/2/statuses/update.json (新浪微博)
        <p>
        另外这个方法可以看到些内容：<a href="http://rm.api.weibo.com/remind/unread_count.json?target=api&_pid=0&count=0&source=3818214747">http://rm.api.weibo.com/remind/unread_count.json?target=api&_pid=0&count=0&source=3818214747</a>
        </p>
        </div>  
        <form action="https://api.weibo.com/2/statuses/update.json" method="post">
                <input type="hidden" name="source" value="3818214747" />
                <input type="hidden" name="access_token" value="2.00jzxULCpEq5KE79bc48b38awDoOkB" />
                <input type="text" class="text" name="status" value="通过新浪工具发布" />
                <input type="submit" value="PUBLISH" />
        </form>
        
        <div>
        DEMO: https://api.weibo.com/2/statuses/update.json (iPad客户端)
        </div>  
        <form action="https://api.weibo.com/2/statuses/upload.json" method="post" enctype="multipart/form-data">
                <input type="hidden" name="source" value="2849184197" />
                <input type="hidden" name="access_token" value="2.006TzB1BpxsoGDffc4f855f5b14jrD" />
                <input type="text" class="text" name="status" value="通过新浪(iPad客户端)发布" />
				<input type="text" class="text" name="long" value="经度+为东经" />
				<input type="text" class="text" name="lat" value="纬度+为北纬" />
				<input type="file" name="pic" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        DEMO: https://api.weibo.com/2/statuses/update.json (webOS客户端)
        </div>  
        <form action="https://api.weibo.com/2/statuses/upload.json" method="post" enctype="multipart/form-data">
                <input type="hidden" name="source" value="1262673699" />
                <input type="hidden" name="access_token" value="2.006TzB1BpGD94B27d7be5246D4xv_D" />
                <input type="text" class="text" name="status" value="通过新浪(webOS客户端)发布" />
				<input type="text" class="text" name="long" value="经度+为东经" />
				<input type="text" class="text" name="lat" value="纬度+为北纬" />
				<input type="file" name="pic" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        DEMO: https://api.weibo.com/2/statuses/update.json (iPhone客户端)
        </div>  
        <form action="https://api.weibo.com/2/statuses/upload.json" method="post" enctype="multipart/form-data">
                <input type="hidden" name="source" value="5786724301" />
                <input type="hidden" name="access_token" value="2.006TzB1Bv1Vc_Gac9cf43955q2QsVE" />
                <input type="text" class="text" name="status" value="通过新浪(iPhone客户端)发布" />
				<input type="text" class="text" name="long" value="经度+为东经" />
				<input type="text" class="text" name="lat" value="纬度+为北纬" />
				<input type="file" name="pic" />
                <input type="submit" value="PUBLISH" />
        </form>
        <div>
        <p>
                https://api.weibo.com/2/oauth2/authorize 这个接口直接可以拿到access token，不需要client_secret，只要知道了APPKEY就可以使用对应的APP来发布微博。
        </p>
        click link: <a href="https://api.weibo.com/2/oauth2/authorize?client_id=4134457377&response_type=token&display=js&redirect_uri=https://api.weibo.com/xd.html">https://api.weibo.com/2/oauth2/authorize?client_id=4134457377&response_type=token&display=js&redirect_uri=https://api.weibo.com/xd.html</a>
        </div>
        
        <div>
        response body is: 
        </div>
        
<div style="white-space: wrap;">
&lt;script type="text/javascript"&gt;if(opener != null) {opener.Authorize({"access_token":"2.00jzxULC6OlnVE6daf6d4584dYaSRB","expires_in":1296000,"remind_in":"1295904","uid":"2002185823"});}&lt;/script&gt;
</div>

<form method="post" action="https://api.weibo.com/oauth2/access_token">
        <input type="hidden" name="client_id" value="2735371158" />
        <input type="hidden" name="client_secret" value="fa2318d3281101f0c9b1be38f499dda4" />
        <input type="hidden" name="grant_type" value="password" />
        <input type="hidden" name="username" value="darwin_test001@sina.com" />
        <input type="text" name="password" value="password" />
        <p>
                <span>https://api.weibo.com/oauth2/access_token 这个接口可以直接用用户名密码验证用户，跳过授权页面，像微博AIR的APPKEY应该都可以达成这个效果，但多数是不被允许以用户名密码方式调用此接口的。</span>
        </p>
        <input type="submit" value="验证"/>
</form>
<pre>
如果有一天，你和新浪微博扯上关系，或者想玩转新浪微博的“来自”尾巴，那就到这来找吧：

小米手机
App Key：xiaomi
App Secret：3MqAdNoRLHomm4AECoURl7gds1sUIjun

Panda.memo
App Key：31641035
App Secret：6a7c98c1eef2109622d0a08199a35bef

周博通微博管家
App Key：202088835
App Secret：9567e3782151dcfd1a9bd2dd099d957f

Google.Nexus
App Key：1206405345
App Secret：fa6095e113cd28fde6e14c7b7145c5c5

iphone客户端
App Key：5786724301
App Secret：5Jao51NF1i5PDC91hhI3ID86ucoDtn4C 

三星GalaxyS
App Key：3442868347
App Secret：07b27d2c098eda5eec681abdde832a51

yibo
3105114937
985e8f106a5db148d1a96abfabcd9043

联想乐pad
2440435914
70dc2ae26780817793c9c533092171dd

Spring微博.Android
1905839263
36b51c6ebf2dd3e5361f80f6c4506267

摩托罗拉xoom
2190063733
9222f119671ebf566b74220768014afd

weico.android
211160679
63b64d531b98c2dbff2443816f274dd3

app梦工厂微博
569452181
bbd573c3052999adcd026cbf88ffbf8e 

微博助手
2702428363
82d9b7c386000b0de0711a20f146fa44

FIT随享微博
31024382
25c3e6b5763653d1e5b280884b45c51f

宏基acer
783190658
7f63ae9eb3c1438e9f8932748ca8a341
 
Android平板
2540340328
886cfb4e61fad4e4e9ba9dee625284dd
 
weico.iphone
82966982
72d4545a28a46a6f329c4f2b1e949e6a
 
ipad客户端
2849184197
7338acf99a00412983f255767c7643d0
 
微博物语iphone
2735371158
fa2318d3281101f0c9b1be38f499dda4
 
PushBox_iPad
1965726745
55377ca138fa49b63b7767778ca1fb5a
 
微格iPhone客户端
2027761570
5042214816d14b2d9e8ae8255f96180d
 
weicoPro
2323547071
16ed80cc77fea11f7f7e96eca178ada3
 
PoMe微博杂志
2135576995
37b190bebb816c11c0bd1f996a7ca49f
 
ArmingWeibo
2612767607
4f988ffd2fba40eaab89dc4aa4c5389d
 
GIF快手
915345515
88b51e31ddbe926089706e4500c55d2d
 
美图秀秀
4229079448
bc58f8c7179369d4bfa914656c161b15
 
三星GalaxyTab
3510766076
f97dfdd530d85eaaee45e63ee47445a3
 
WeicoGIF
1078446352
c698c95df62b060734d3d0a9e8787a9a
 
围脖Call
1008696810
bd464ae2cee0e5d7234a12d06c9476ff
 
webOS
1262673699
6185cf040b403dfa35de9678b5e35baf

2. 以下僅僅適用與新浪微博官方客戶端：

android手機
App Key：android
App Secret：5l0WXnhiY4pJ794KIJ7Rw5F45VXg9sjo

黑莓客戶端
App Key：blackberry
App Secret：ivij24vyWpP0zE0M03r56RL2u8nu0L66

三星GalaxyTab
App Key：sxtab
App Secret：6b2BhcdpiCdyZaIh4O3S1zHAUoC6Zpql

三星Android智能手機客戶端
App Key：sxandroid
App Secret：tYQO8S1RndCGgI3qNbiCEjG3cVaeOvq7

htc
App Key：htc
App Secret：ybQv5D6BC2bIOqYV2wCsIs0dX9vV0xIG

SonyXpera
App Key：x10
App Secret：rPVsSGvnz8erJ7w8sIICKEE70wQMRswU

Moto
App Key：me511
App Secret：5AgbUpV7fL2APXOkI04QnRhlGUdUlwy0

樂phone
App Key：lp
App Secret：5EmMeHqPOYsLSQ2zjrdXHoUhqtD4QYGx

魅族M9
App Key：meizu_m9
App Secret：WQnVIAWDBmR9XV86YNAO97P3Xgk21az9

S60手機
App Key：s60
App Secret：AbLmkn77N8j72iyE2Aup5RoRN8C0M3E5

天翼3G互聯網手機
App Key：tianyi
App Secret：DX2eXTXpGhnTeSoMcJs2BCpXQQKyzehf

TCL互聯網手機
App Key：tcl
App Secret：gPvIKBER6kF2wAe6POQF9mTL1W9I9Y8C

中興手機
App Key：zhongxing
App Secret：sc2GRZT16abrHaUps2cydiQKvWizy8IE

華為手機
App Key：huawei
App Secret：QUoQoFbH7LVmuCBhEwMKzC65R1JZDX0t

我的天語手機K-Touch
App Key：k_touch
App Secret：7d125GronKUP1rcgkOb8rqVjh2Q44fdx

我的K-Touch天語W700
App Key：tyw700
App Secret：nj3PK1AvukNAwXihZZg9PN6H文明用語b5QQb

我的酷派大觀9930
App Key：yulong
App Secret：9qCZ3L9riYQRz4FznnwUGrv2uPjqBGEm

我的coolpad酷派終端
App Key：coolpad
App Secret：SuQmVobcpJxaNZRThXR4xsytbHUMOdFB

小米手機
App Key：xiaomi
App Secret：3MqAdNoRLHomm4AECoURl7gds1sUIjun
</pre>

</body>
</html>
